using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN RolesEntityBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:23/09/2010 33:09:56</para>
	/// <para>Class Name: RolesEntityBase</para>
	/// <para>Description: ClassRolesEntityBase store data of table Roles</para>
	///</summary>

	[DataContract]
	public  class RolesEntityBase{


		private bool _InternalChangedIsNullRole_ID=true;
		private bool _IsNullRole_ID=true;
		private bool _InternalChangedIsNullRoleCode=true;
		private bool _IsNullRoleCode=true;
		private bool _InternalChangedIsNullRoleName=true;
		private bool _IsNullRoleName=true;
		private bool _InternalChangedIsNullRoleDescription=true;
		private bool _IsNullRoleDescription=true;
		private bool _InternalChangedIsNullRoleType=true;
		private bool _IsNullRoleType=true;
		private int _Role_ID;
		private string _RoleCode;
		private string _RoleName;
		private string _RoleDescription;
		private Byte _RoleType;
		[DataMember]
		public bool IsNullRole_ID{
			get{return _IsNullRole_ID;}
			set{if(!_InternalChangedIsNullRole_ID)_IsNullRole_ID=value;}
		}
		[DataMember]
		public bool IsNullRoleCode{
			get{return _IsNullRoleCode;}
			set{if(!_InternalChangedIsNullRoleCode)_IsNullRoleCode=value;}
		}
		[DataMember]
		public bool IsNullRoleName{
			get{return _IsNullRoleName;}
			set{if(!_InternalChangedIsNullRoleName)_IsNullRoleName=value;}
		}
		[DataMember]
		public bool IsNullRoleDescription{
			get{return _IsNullRoleDescription;}
			set{if(!_InternalChangedIsNullRoleDescription)_IsNullRoleDescription=value;}
		}
		[DataMember]
		public bool IsNullRoleType{
			get{return _IsNullRoleType;}
			set{if(!_InternalChangedIsNullRoleType)_IsNullRoleType=value;}
		}
		[DataMember]
		public int Role_ID{
			get{return _Role_ID;}
			set{
				_Role_ID=value;
				if(_Role_ID!=null){
					_IsNullRole_ID=false;
					_InternalChangedIsNullRole_ID=true;
				}
			}
		}
		[DataMember]
		public string RoleCode{
			get{return _RoleCode;}
			set{
				_RoleCode=value;
				if(_RoleCode!=null){
					_IsNullRoleCode=false;
					_InternalChangedIsNullRoleCode=true;
				}
			}
		}
		[DataMember]
		public string RoleName{
			get{return _RoleName;}
			set{
				_RoleName=value;
				if(_RoleName!=null){
					_IsNullRoleName=false;
					_InternalChangedIsNullRoleName=true;
				}
			}
		}
		[DataMember]
		public string RoleDescription{
			get{return _RoleDescription;}
			set{
				_RoleDescription=value;
				if(_RoleDescription!=null){
					_IsNullRoleDescription=false;
					_InternalChangedIsNullRoleDescription=true;
				}
			}
		}
		[DataMember]
		public Byte RoleType{
			get{return _RoleType;}
			set{
				_RoleType=value;
				if(_RoleType!=null){
					_IsNullRoleType=false;
					_InternalChangedIsNullRoleType=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END RolesEntityBase*****************************************/
	/*****************************************************************************************************/
}

